package ffhs.lernkartei.comparator;

import java.util.Comparator;

import ffhs.lernkartei.domain.Card;

/**
 * Komparator zum sortieren der Karten nach dem Attribut createDate
 * 
 * @author schwendh
 *
 */
public class CardOrderCreateDateComparator implements Comparator<Card>
{

	public int compare(Card card1, Card card2)
	{

		int result = card1.getCreate_date().compareTo(card2.getCreate_date());

		return result;
	}
}
